package chap6.string;

import java.sql.ResultSet;

public class StringArrayTest {
	static int j = 1;
	public static void main(String[] args) {
		String [] columnsMap = new String[]{"Sr No","Batch No", "Activation Date",  "Payment Method","Debit A/c No.","Bene A/c no.","Bene Name","Amount Payable Currency","Amount Payable","Transaction Status","Branch Name","Location Name"};
		int o = 5;
		int p = 12+o;
		 System.out.println("ColuMap length : "+columnsMap.length);
		ResultSet rs= null;
		String[] str = new String[p];
		for (int i =0 ;i<p;i++){
			if(i>=12){				
			str[i]="enrich"+j;
			j++;
			}
			else{
				str[i]= columnsMap[i];
				
			}
			System.out.println(str[i]+""+i);
		}
		/*for(int y=0; y<5;y++){
			columnsMap[12+y] = "enrich"+y;
			System.out.println(">>>>"+columnsMap);
		}*/
			
	}
}
